package com.dfxs.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangdongsheng
 * @version 1.0
 * @describe 数据库和mapper.xml文件对象存储类
 * @date 2020/9/25 23:37
 */
public class Configuration {

    //数据库资源
    private DataSource dataSource;
    //key:statementId:namespace.id value 封装好的MappedStatement对象
    Map<String,MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
